//---------------------------
// Post
//---------------------------

.post-card {
  &__header {
    margin-bottom: half($line-height__base);
  }

  &__image {
    transition: $base-transition-speed;
  }

  &__info {
    padding: $line-height__medium;
  }

  &__title {
    a {
      display: inline;
      border-bottom: none;
      transition: $base-transition-speed;
      // background-image: linear-gradient(180deg, transparent 65%, #72c6ff 0);

      background-size: 0 100%;
      background-repeat: no-repeat;
      transition: background-size .5s ease;

      &:hover {
        color: $color__type; background-size: 100% 100%;
      }
    }

  }

  &__meta {
    margin-bottom: quarter($line-height__base);
    font-size: $font-size__tiny;
    line-height: 0;
    color: $color__type--hover;

    a { color: $color__type--hover; text-decoration: none; }
  }

  &:hover {
    .post-card__image {
      opacity: 0.9;
    }

    .post-card__title a {
      background-size: 100% 100%;
    }
  }

  &--featured {
    &__icon {
      position: absolute;
      bottom: quarter($line-height__base);
      left: quarter($line-height__base);
      fill: #fff;
    }
  }
}

// Make post cards the same height

.post-list {
  width: 66%;
  float: right;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;

  .post-card-wrap {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-radius: 10px;
    overflow: hidden;
    transition: .35s;
    background-color: #f6f2f2;
  }

  .post-card-wrap:hover{
    box-shadow: -2px 6px 25px 4px rgba(0,0,0,0.36);
    -webkit-box-shadow: 0 0 25px 4px rgba(63, 63, 63, 0.36);
    -moz-box-shadow: 0 0 25px 4px rgba(63, 63, 63, 0.36);
  }

  .post-card {
    width: 30%;
  }
}